<?php

/**
 * @author mrHie darkbuivn@gmai.com
 * @copyright 2014
 */

class user
{
    private $uid;
    private $pwd;
    private $email;
    private $gid;
    public function __construct()
    {
        $uid ="guest";
        $pwd ="";
        $email = "";
        $gid = 2;
    }
    public function user($uid,$pwd,$email,$gid)
    {
        $this->uid = $uid;
        $this->pwd = $pwd;
        $this->email = $email;
        $this->gid = $uid;
    }
    public function getuid()
    {
        return $uid;
    }
    public function setuid($uid)
    {
        $this->uid = $uid;
    }  
    public function getpwd()
    {
        return $pwd;
    }
    public function setpwd($pwd)
    {
        $this->pwd = $pwd;
    }
    public function getemail()
    {
        return $email;
    }
    public function setemail($email)
    {
        $this->email = $email;
    }
    public function getgid()
    {
        return $gid;
    }   
    public function setgid($gid)
    {
        $this->gid = $gid;
    }
    public function show()
    {     
        echo $uid;
        echo $pwd;
        echo $email;
        if($gid==2) echo "Administrator";
        else echo "Member";
    }
}

?>